#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
@FileName  :test.py 
@desc      :
@Author    :Young
@IDE       :PyCharm
@Time      :2022-10-22 15:16
'''

import time
#
# timeA = time.time()
# print(timeA)
#
# timeB = time.ctime(timeA)[4:16]
# print(timeB)

# def analyseData(text):
#     '''
#     对数据进行解析，将温度数据和光照数据存入数据库数据存入数据库，在相应位置显示当前的数据
#     :param text:
#     :return:
#     '''
#     # text T24I0X
#     currentTime = time.ctime()
#     receiveTime = currentTime[4:16]
#     tempData = text[1:3]
#     illuminationData = text[4]
#     print("tempData:",receiveTime,tempData)
#     print("illuminationData:",receiveTime,illuminationData)
#
# analyseData("T24I0X")

from PyQt5.QtWidgets import QMainWindow, QApplication
from resign import Ui_ResignWindow
from QT_plot_chart import Ui_MainWindow
import sys


# 主窗口
class Main(QMainWindow, Ui_MainWindow):
    def __init__(self):
        super(Main, self).__init__()
        self.setupUi(self)


# 登录窗口
class Resign(QMainWindow, Ui_ResignWindow):
    lists = []  # 设置一个空列表，实现账号与密码的存储

    def __init__(self):
        super(Resign, self).__init__()
        self.setupUi(self)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    resign = Resign()
    resign.show()
    sys.exit(app.exec_())
    main = Main()
    main.show()
    self.close()